package com.heima.pojo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel("新增|修改设备参数模型")
public class VmType {
    @ApiModelProperty("类型id")
    private String typeId;
    @NotNull(message = "设备行不能为空")
    @ApiModelProperty("类型行")
    private Integer vmRow;
    @ApiModelProperty("类型列")
    @NotNull(message = "设备列不能为空")
    private Integer vmCol;
    @NotBlank(message = "设备名不能为空")
    @ApiModelProperty("类型名称")
    private String name;
    @NotNull(message = "设备容量不能为空")
    @ApiModelProperty("类型容量")
    private Integer channelMaxCapacity;
    @NotBlank(message = "设备型号不能为空")
    @ApiModelProperty("类型型号")
    private String model;
    @NotNull(message = "设备图片不能为空")
    @ApiModelProperty("类型图片")
    private String image;
}
